package com.armani.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ProjectName: 用户
 * @Package: com.armani.entity
 * @ClassName: User
 * @Description: TODO
 * @Author: Roc
 * @Date: 2021/11/27 16:27
 * @Version: 1.0
 **/
@Data
public class User {
    private Integer id;
    private String userName;//昵称
    private String user; //用户名
    private String password; //密码
    private String phone;
    private String sex;
    private String cardId;
    @JSONField(format = "yyyy-MM-dd")
    private Date birth; //生日会员
    private String email; //邮箱

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createtime; //注册时间

    private Integer level; //会员等级（1 普通会员，2 青铜，3白银，4黄金，5钻石'）
    private BigDecimal balance; //余额
    private String zhuangtai;
}
